<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
  <!-- nav开始 -->
 <div style="background-color:#DDEBFF" class="leftNav col-md-3"><br>
 <table class="table">
	<thead>
		<tr>
			<th>&nbsp;&nbsp; &nbsp;&nbsp;<span class="glyphicon glyphicon-th-list"></span>&nbsp;&nbsp;&nbsp;目录
			<div class="pull-right btn-group">
    			<button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus"></span></button>
   		    	<button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-minus"></span></button>
    			<button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-ok"></span></button>
			</div>
			</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<div class="btn-group">
	<button style="border:none" type="button" class="btn btn-default btn-xl dropdown-toggle" 
			data-toggle="dropdown">
		  <span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;&nbsp;&nbsp;
		  <a href="javascript:void(0);" onclick="js_method()">查看用户</a>
	</button>
</div>
			</td></tr>
		<tr>
			<td>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<div class="btn-group">
	<button style="border:none" data-toggle="modal" data-target="#myModal" type="button" class="btn btn-default btn-xl dropdown-toggle" 
			data-toggle="dropdown">
		  <span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		    <span style="color:#4487B4">新增用户</span> 
	</button>
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					新增用户信息：
				</h4><br>
				<form class="bs-example bs-example-form" action="../user.con" method="POST" role="form">
					<div class="form-group">
            			<input type="hidden" name="work" value="addUser" />
            		</div>
					<div class="input-group">
						<span class="input-group-addon">名字</span>
						<input type="text" name="userName" class="form-control">
					</div>
					<br>
					<div class="input-group">
						<span class="input-group-addon">密码</span>
						<input type="password" name="pwd" class="form-control">
					</div><br>
					<div class="input-group">
						<span class="input-group-addon">类型</span>
						<input type="text" name="category" class="form-control">
					</div><br>
					<div class="input-group">
					<span class="input-group-addon">权限</span>
					<select name="belong_to" class="form-control input-lg">
			 			 <option value="0">权限列表</option>
			 			 <option value="1 ">1.校级管理处</option>
			 			 <option value="2">2.网安学院</option>
			 			 <option value="3">3.光电学院</option>
				      	 <option value="4">4.控制工程学院</option>
			 			 <option value="5">5.软件学院</option>
			  			 <option value="6">6.英语学院</option>
			  			 <option value="7">7.校外单位</option>
			 		 </select>
					</div><br>
					<div class="row">
        			 <div class="col-md-4"></div>
       				  <div class="col-md-4">
        			  <button class=" btn btn-warning"><a href="admin.jsp">关闭新增</a></button>
         			 <button class="success pull-right submit btn btn-success">确认提交</button>
        			 </div>
         			 <div class="col-md-4"></div>
					  </div>
				</form>
			</div>
			
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
	
</div>
			</td></tr>
	<%List<Integer> counter = new ArrayList<>();
		for(int i=0;i<10;i++)
			counter.add(i);
		request.setAttribute("counter", counter);
	%>
	<c:forEach var="a" items="${requestScope.counter }">
		<tr>
			<td>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<div class="btn-group">
	<button style="border:none" type="button" class="btn btn-default btn-xl dropdown-toggle" 
			data-toggle="dropdown">
		  <span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  <a href="javascript:void(0);">功能接口</a>
	</button>
	<ul class="dropdown-menu" role="menu">
		<li><a href="#">功能</a></li>
		<li><a href="#">另一个功能</a></li>
		<li><a href="#">其他</a></li>
		<li class="divider"></li>
		<li><a href="#">分离的链接</a></li>
	</ul>
</div>
			</td></tr>
	</c:forEach>
	</tbody>
</table>
</div>
<div class="col-md-1"></div>
<!-- nav结束 -->
</body>
</html>